<?php
namespace app\api\controller;

use tp5_lib\api\controller\ApiBaseController;
use think\Exception;

class TestController extends ApiBaseController
{
    public function index()
    {
        $this->success("ok");
    }
    public function onError()
    {
        $this->error("ok");
    }
    public function data()
    {
        $this->result(["message"=>"ok"],1);
    }
    public function exce()
    {
        throw new Exception("ok");
    }
}
